﻿namespace SecretDemo
{
    public class UserDBAccess
    {
        public User GetUser(string account)
        {
            //模拟从数据库中读取account信息
            if (account != "admin")
            {
                return null;
            }
            return new User {
                Account = "admin",
                Status=1,
                Password = "12345678",
                ActionCodeList = new List<string> { "Action1",  "Action3" }
            };
        }
    }
}
